package com.ruoyi.project.system.material.center.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import com.ruoyi.project.system.material.img.domain.MaterialImg;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 素材中心对象 material_center
 * 
 * @author LCL
 * @date 2021-01-21
 */
public class MaterialCenter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    //素材中心图片
    private List<MaterialImg> MaterialImgs;

    public List<MaterialImg> getMaterialImgs() {
        return MaterialImgs;
    }

    public void setMaterialImgs(List<MaterialImg> materialImgs) {
        MaterialImgs = materialImgs;
    }

    /** 主键ID */
    private String id;

    /** 头像访问路径 */
    @Excel(name = "头像访问路径")
    private String mainUrl;

    /** 头像真实路径 */
    @Excel(name = "头像真实路径")
    private String mainUrlReal;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date created;

    /** 素材内容 */
    @Excel(name = "素材内容")
    private String materialContent;

    /** 是否展示 0：否 1：是 */
    @Excel(name = "是否展示 0：否 1：是")
    private Integer isShow;

    /** 排序 正序 */
    @Excel(name = "排序 正序")
    private Integer sort;

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setMainUrl(String mainUrl) 
    {
        this.mainUrl = mainUrl;
    }

    public String getMainUrl() 
    {
        return mainUrl;
    }
    public void setMainUrlReal(String mainUrlReal) 
    {
        this.mainUrlReal = mainUrlReal;
    }

    public String getMainUrlReal() 
    {
        return mainUrlReal;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCreated(Date created) 
    {
        this.created = created;
    }

    public Date getCreated() 
    {
        return created;
    }
    public void setMaterialContent(String materialContent) 
    {
        this.materialContent = materialContent;
    }

    public String getMaterialContent() 
    {
        return materialContent;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mainUrl", getMainUrl())
            .append("mainUrlReal", getMainUrlReal())
            .append("name", getName())
            .append("created", getCreated())
            .append("materialContent", getMaterialContent())
            .append("isShow", getIsShow())
            .append("sort", getSort())
            .toString();
    }
}
